<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>动态</title>
<link rel="stylesheet" href="/networkforum/css/user_info.css" />

<style type="text/css">
body{
	position: relative;
	width: 100%;
	height: 100%;
}
*{
	vertical-align:middle;
	margin:0px;
	padding:0px;
	border:0px;
}
.grdenNav{
	width:97%;
	height:30px;
	margin:20px 0px;
	border:1px dashed #64CB3D;	
}
.grdenNav span{
	float:left;
	font-size:12px;
	line-height:25px;
	display:inline-block;
	padding:2px 15px;
}
.grdenNav span:hover{
	background-color:#66CCFF;
	cursor:pointer;
}
.default,.older,.minReply{
	border-right: 1px dashed green;
}
.choice{
	height:20px;
	font-size:12px;
}
.choice span{
	display:inline-block;
	padding:1px 5px;
	border:1px dashed #66CC99;
	cursor:pointer;
	background-color:#CCCCFF;
}
.dongtaiInner{
	width:98%;
	min-height:530px;
	height:auto;
	margin-top:2px;
	padding:1px 2px;
	border:1px dashed #64CB3D;	
	position: relative;
	overflow: hidden;
	display: inline-block;
	margin-bottom: 28px;
}
.dongtaiInner li{
	list-style:none;
	width:100%;
	min-height:25px;
	height:auto;
	overflow:hidden;
	border-bottom:1px dashed #663366;
	margin:0px 0px 5px 0px;
	padding-bottom:5px;
	color: #f93;
}
#header{
	border:none;
	background-color:#E6D7B7;
	line-height:25px;
	font-size: 15px;
	color: blue;
}
.dongtaiInner li span{
	display:inline-block;
	font-size:13px;
}
.dongtaiInner li img{
	height:50px;
	width:50px;
}
#content{
	width:410px;
}
#time{
	width:155px;
}
#reply{
	width:64px;
}
#handle{
	color:green;
	font-size:11px;
	width:35px;
	text-align:right;
	cursor:pointer;
}
.paging{
	background-color: #E3CB8A;
	text-align: center;
	margin: 0 auto;
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: 25px;
	line-height: 25px;
	vertical-align: middle;
}
.paging span{
	font-size: 12px;
	padding: 2px 10px;
}
.paging input{
	float:none;
	clear:both;
	width:30px;
	height: 16px;
	border-radius:3px;
	border: none;
}
</style>
<script type="text/javascript">
var option = {
	'content':{
		'param':{'id':"content"},
		bind:{targetId:"targetId"}
	},
	'time':{
		'param':{'id':"time"}
	},
	'reply':{
		'param':{'id':"reply"}
	}			
}
window.onload = function(){
	dontaiInfo(0,10,"默认");
	//page.view('ulInner',dongtai,dt);

	//好友分页
	var myajax = getByAjax();
	myajax.init(null,"get",true);
	myajax.get("/networkforum/article/count_size.do?moduleName=动态",function(d){
		paging.page({
			size:10,
			total:Math.ceil(d/10),
			url:"/networkforum/garden/load_myBall.do?type=&module=动态",
			previou:document.getElementById("previouPage"),
			next:document.getElementById("nextPage"),
			current:document.getElementById("currentPage"),
			max:document.getElementById("totalPage"),
			callBack:callBack,
		});
	});
	myajax = null;
}
function dongtaiHandle(event,type){
	optionHandle(event,type);
	dontaiInfo(0,10,opt[type]);
}
function dontaiInfo(index,size,type){
	loadInfo(index,size,type,"动态");
}
</script>
</head>

<body>
	<h2 class="header">动态管理</h2>
	<div class="grdenNav">
		<span class="default" onclick="dongtaiHandle(event,'option')">默认</span>
		<span class="last" onclick="dongtaiHandle(event,'option')">最新</span>
		<span class="older" onclick="dongtaiHandle(event,'option')">最早</span>
		<span class="maxReply" onclick="dongtaiHandle(event,'option')">最多评论</span>
		<span class="minReply" onclick="dongtaiHandle(event,'option')">最少评论</span>
	</div>
	<div class="choice" id="choice">
		<span>默认</span>
	</div>
	<ul class="dongtaiInner" id="articleInner">
		<li style="display: none;">
			<span id="content">内容</span>
			<span id="time">时间</span>
			<span id="reply">评论</span>
			<span id="handle" onclick="deleteInfo(event);">删除</span>
		</li>
		<li id="header">
			<span id="content">内容</span>
			<span id="time">时间</span>
			<span id="reply">评论</span>
			<span id="handle"></span>
		</li>
	</ul>
	<div class="paging" id="paging">
   		<div class="clear"></div>
   		<span id="previouPage" style="cursor: pointer;">上一页</span>
   		<!--  <span id="currentPage2">1</span>-->
   		<input id="currentPage" type="text" value = "1"/>	
   		<span id="nextPage" style="cursor: pointer;">下一页</span>
   		<span id="totalPage">共 1 页</span>
   	</div>
</body>
<script src="/networkforum/js/view.js" type="text/javascript"></script>
<script src="/networkforum/js/combo.js" type="text/javascript"></script>
<script src="/networkforum/js/pageing.js" type="text/javascript"></script>
<script src="/networkforum/js/myajax.js" type="text/javascript"></script>
<script src="/networkforum/js/user_control_article.js" type="text/javascript"></script>
</html>
